var express =require("express");
var app =express()
// console.log(app);
app.use(express.static("www"));
var http =require("http").createServer(app);
// console.log(http)
var io = require('socket.io')(http)
console.log(io)
io.on("connection",function(socket){
    console.log("一次连接ok")
    socket.on("yang",function(mes){
        console.log(mes)
        io.emit("yang",mes)
    })
})


http.listen("3000")


